export default {
    data() {
      return {
        w: 0, //table宽度
      }
    },
    methods: {
      $_calcTableW() {
        this.w = document.body.clientWidth - 280
      },
    },
    //操作dom
    mounted() {
      this.$_calcTableW()
      window.addEventListener('resize', this.$_calcTableW)
    },
    beforeDestroy() {
      window.removeEventListener('resize', this.$_calcTableW)
    },
  }
  